package com.dify.knowledge.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 解答评分实体类
 */
@Data
@TableName("answer_rating")
public class AnswerRating {
    
    /**
     * 评分ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    
    /**
     * 人工解答ID
     */
    private Long manualAnswerId;
    
    /**
     * 评分用户ID
     */
    private Long userId;
    
    /**
     * 是否有用：true-有用, false-无用
     */
    private Boolean isUseful;
    
    /**
     * 评分日期
     */
    private LocalDate ratingDate;
    
    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
}
